import random

def generate_data(size):
    data = []
    for _ in range(size):
        data.append(random.randint(1, 100))  # 生成 1 到 100 之间的随机整数
    return data

if __name__ == '__main__':
    data_size = 5
    random_numbers = generate_data(data_size)
    print("生成的随机数列表:", random_numbers)